<!DOCTYPE html>
<html>
<head>
<base href="<?php echo XXF_HTTP?>" />
<meta charset="utf-8">
<title>评教系统</title>
<style type="text/css">
*{margin:0;padding:0;}
.bu{
	background-color:#eee;
}
.bu:hover{
	background-color:red;
}
</style>
<script src="js/jquery.js"></script>
<script src="js/jquery.xxfset.js"></script>
<script type="text/javascript">
function foo(cname){
	$.xconfirm("你选择的是"+cname+"，正确请点击[确定]继续！<br><br><br>",function(data){
		if(data){
			uri=encodeURI(encodeURI("pingce/type/exam/pjid/<?php echo $pjid?>/cname/"+cname));
			location.href=uri;
		}
	});
}
</script>
</head>
<body>
<div style="width: 700px;margin:50px auto;">
	<h1 style="text-align: center;"><?php // echo xdb::getInstance()->getvar("select sname from stu where id=".$sid)?> <small>请选择你所在的班级</small></h1>
	<div>
		<?php 
		for($i=0;$i<count($cnames);$i++){
	       echo '<div onclick="foo(\''.$cnames[$i].'\')"  class="bu" style="padding-top:20px;width:120px;height:40px;float:left;margin:10px;text-align:center;font-weight:bold;cursor:pointer;">'.$cnames[$i].'</div>';
		}?>
	</div>
</div>
</body>
</html>